package com.v.im.commonmodule.utils.utils;

import com.alibaba.fastjson.JSONObject;
import com.v.im.commonmodule.utils.bean.CurrentUserInfo;

/**
 * @author wym
 * @create 2019-03-13 17:21
 **/
public class UserHeaderUtil {

    public static final String CURRENT_USER_INFO = "CURRENT_USER_INFO";

    public static CurrentUserInfo getCurrentUserInfo(String json) {
        String userInfoJson = json.replace("[", "").replace("]", "");
        return JSONObject.parseObject(userInfoJson, CurrentUserInfo.class);
    }
}
